package com.weijing.pretty_app

import android.app.Application
import com.jeremyliao.liveeventbus.LiveEventBus
import com.tencent.mmkv.MMKV

class MyApp : Application() {

    override fun onCreate() {
        super.onCreate()
        instance = this
        LiveEventBus.config().lifecycleObserverAlwaysActive(true).autoClear(true)  //mmkv初始化
        MMKV.initialize(instance)
//        BluetoothSPPManager.init(this)
    }

    companion object {
        lateinit var instance: MyApp
    }
}